package com.ts.code.creator.creator.impl;

import com.intellij.openapi.project.Project;
import com.intellij.openapi.vfs.LocalFileSystem;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.psi.JavaDirectoryService;
import com.intellij.psi.PsiAnnotation;
import com.intellij.psi.PsiClass;
import com.intellij.psi.PsiClassType;
import com.intellij.psi.PsiDirectory;
import com.intellij.psi.PsiManager;
import com.intellij.psi.codeStyle.JavaCodeStyleManager;
import com.intellij.psi.search.GlobalSearchScope;
import com.ts.code.creator.enums.CreateFileEnum;
import com.ts.code.creator.enums.ParamTypeEnum;
import com.ts.code.creator.enums.RetTypeEnum;
import com.ts.code.creator.express.ExpressContext;
import com.ts.code.creator.express.ExpressUtil;
import com.ts.code.creator.util.CreateCodeContext;
import com.ts.code.creator.util.FileUtil;
import com.ts.code.creator.util.StringUtil;

/**
 * 聚合层 controller
 */
public class AdminVOCreator extends AbstractCodeCreator {

    public AdminVOCreator(CreateCodeContext context) {
        super(context);
    }

    @Override
    protected CreateFileEnum createFileEnum() {
        return CreateFileEnum.ADMIN_VO;
    }

    @Override
    public void doCreate() {
        // 创建 聚合层VO
        if (RetTypeEnum.isCreateRetClass(context.getRetTypeEnum())) {
            // 创建class
            createClass(classFileSearch.adminVODir(), className("VO"), null);
        }
    }

}
